#include<stdio.h>

int main()
{
	int n = 0;
	scanf("%d",&n);
	
		if(n & (n-1)==0 )
	 {
	 	printf("yes");	 	
	  } 
 	
	return 0;
	
}
